<?php

class Default_Model_Info extends Zend_Db_Table_Abstract{
    public $_name="info";            
    public function getData(){
		$query = $this->select()          
                        ->from($this->_name)
                        ->where('id = 1');                         
        return $this->fetchRow($query);
    }    
    public function getWhere($id){
        $se=$this->select();
        $se->where("id=$id");        
        if($kq=$this->fetchRow($se))
            return $kq->toArray();
        else
            return false;  
    }
    
    public function updateCat($data,$id){
        $this->update($data,"id=$id");          
    }
}